﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace UnwiseSource.Administration.ToolClasses
{
    public static class Taker
    {
        public static string ValueOrEmptyString(string item)
        {
            if (item != null)
            {
                return item;
            }

            return string.Empty;
        }

        public static string ValueOrEmptyString(DateTime? item)
        {
            if (item != null)
            {
                return item.Value.ToString("dd.MM.yyyy");
            }

            return string.Empty;
        }

        public static string BoolValueToBGDaINe(bool value)
        {
            if (value == false)
            {
                return "Не";
            }
            else
            {
                return "Да";
            }
        }
    }
}